import Layout from "@/layout";

const SystemSettingsRouter = {
  path: "/animal-husbandry",
  component: Layout,
  redirect: "noRedirect",
  name: "largeScreenConfigurable",
  meta: { title: "畜牧", icon: "system-settings" },
  children: [
    {
      path: "breeding-type-manage",
      name: "breedingTypeManage",
      component: () =>
        import("@/views/production-operation-maintenance/basic-info-manage/breeding-type-manage/index"),
      meta: { title: "养殖类型管理", icon: "agricultural-type-management" }
    },
    {
      path: "breeding-base-management",
      name: "AreedingBaseManagement",
      component: () =>
        import("@/views/production-operation-maintenance/basic-info-manage/breeding-base-management/index"),
      meta: { title: "基地&养殖类型", icon: "agricultural-type-management" }
    },
    {
      path: "sheepFarm",
      name: "SheepFarm",
      component: () =>
        import("@/views/production-operation-maintenance/basic-info-manage/sheepFarm/index"),
      meta: { title: "基地&配置牧场信息", icon: "agricultural-type-management" }
    },
    // // 配置页眉页脚与导航栏页面---布局配置
    {
      path: "condition-configuration",
      name: "conditionConfiguration",
      component: () => import("@/views/production-operation-maintenance/animal-husbandry/condition-configuration/index.vue"),
      meta: { title: "预警条件配置", icon: "system-settings" }
    },
    {
      path: "organization-template-fields",
      name: "OrganizationTemplateFields",
      // component: () =>
      // import("@/views/production-operation-maintenance/basic-info-manage/functional-audit/index"),
      component: { render(c) { return c('router-view') } },
      redirect: 'organization-template-fields',
      meta: { title: "智养字段配置", icon: "agricultural-type-management" },
      children: [
        {
          path: "organization-template-field",
          name: "organizationTemplateField",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/organization-template-fields/organization-template-field/index"),
          meta: { title: "字段模板", hidden: true, icon: "agricultural-type-management" }
        },
        {
          path: "global-fields",
          name: "GlobalFields",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/organization-template-fields/global-fields/index"),
          meta: { title: "全局字段", hidden: true, icon: "agricultural-type-management" }
        }
      ]
    }
  ]
};

export default SystemSettingsRouter;
